package com.inspur.icity.bus.base.core.repo;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface CrudRepo<T,PK>{
    public T get(PK id);
    public void add(T t);
    public void update(T t);
    public void remove(PK id);
    public List<T> find();
    public List<T> find(PageBounds pageBounds);
    public List<T> find(@Param("map") Map<String, Object> map);
    public List<T> find(@Param("map") Map<String, Object> map, PageBounds pageBounds);
    public void flushCache();
}
